#ifndef PLANE_H
#define PLANE_H

#include "polygonbody.h"
#include <Box2D/Box2D.h>

class Plane : public PolygonBody
{
public:
    Plane(b2World *world, b2Vec2 pos = b2Vec2(0, 0), float angle_in_radius = 0.f, float density = 0.f, float friction = 0.f);
    virtual void draw(QPainter *painter) override;
    virtual void step() override;

    void applyEngineForce(ForceWrapper *force);

private:
    b2Vec2 engineForce;
    int forceId;
    static const b2Vec2 planeVertices[20];
};

#endif // PLANE_H
